package com.xiyin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xiyin.entity.UserSqlInjector;
import com.xiyin.methods.TblUserSqlProvider;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xukaihang
 * @since 2024-08-18
 */
public interface UserSqlInjectorMapper extends BaseMapper<UserSqlInjector> {
    //sql注入器
    List<UserSqlInjector> selectAll();

    //动态sql
    @SelectProvider(type = TblUserSqlProvider.class, method = "dynamicSelect")
    List<UserSqlInjector> dynamicSelect(UserSqlInjector userSqlInjector);
}
